<%# locals: (name:, selected:, id: name) %>

<%== part(
  "components/form/select",
  name:,
  id:,
  options: [["", "No access", nil, {}]].concat(
    @allowed_view_tag_names.map { [it, it, nil, @allowed_add_tag_names_map.include?(it) ? {} : { disabled: true }] }
  ),
  selected:
) %>
